<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>DWR Demo</title>
<script type='text/javascript' src='/DWR_working/dwr/interface/Message.js'></script>
<script type='text/javascript' src='/DWR_working/dwr/engine.js'></script>
<script type='text/javascript' src='/DWR_working/dwr/util.js'></script>
</head>
<body>
<input value="click me!!!" type="button" onclick="update();" />
<div style="background-color: #ffeaa7;font-weight: bold;width: 300px;" id="divResponse">
Message From browser</div>
<script type="text/javascript">
function update()
{
    alert("in update method");
 	
    Message.getMessage(function(data) {
		dwr.util.setValue("divResponse", data);
	  });
}
</script>
</body>
</html>